<?php /*a:2:{s:59:"D:\projects\junhe\app\data\view\store\goods_cate\index.html";i:1741885059;s:58:"D:\projects\junhe\app\data\view\..\..\admin\view\main.html";i:1740136709;}*/ ?>
<div class="layui-card">
    
    
    <?php if(!(empty($title) || (($title instanceof \think\Collection || $title instanceof \think\Paginator ) && $title->isEmpty()))): ?>
    <div class="layui-card-header">
        <span class="layui-icon font-s10 color-desc margin-right-5">&#xe65b;</span><?php echo htmlentities((isset($title) && ($title !== '')?$title:''),ENT_QUOTES); ?>
        <div class="pull-right">
<?php if(auth("add")): ?>
<button data-modal='<?php echo url("add"); ?>' data-title="添加分类" class='layui-btn layui-btn-sm layui-btn-primary'>添加分类</button>
<?php endif; if(auth("remove")): ?>
<button data-action='<?php echo url("remove"); ?>' data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除分类</button>
<?php endif; ?>
</div>
    </div>
    <?php endif; ?>
    
    <div class="layui-card-line"></div>
    <div class="layui-card-body">
        <div class="layui-card-html">
            
<div class="think-box-shadow">

    <table class="layui-table margin-top-10" lay-skin="line">
        <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='list-table-sort-td'>
                <button type="button" data-reload class="layui-btn layui-btn-xs">刷 新</button>
            </th>
            <th class='text-center nowrap'>分类ID</th>
      
            <th class='text-left nowrap'>分类名称</th>
            <th class='text-left nowrap'>商品数量</th>
            <th class="text-center">状态</th>
            <th class="text-center">是否热门</th>
            <th>操作</th>
        </tr>
        </thead>
        <?php endif; ?>
        <tbody>
        <?php foreach($list as $key=>$vo): ?>
        <tr>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>' type='checkbox'>
            </td>
            <td class='list-table-sort-td'>
                <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vo['sort'],ENT_QUOTES); ?>" class="list-sort-input">
            </td>
            <td class='text-center nowrap'>
                <?php echo htmlentities($vo['id'],ENT_QUOTES); ?>
            </td>
          
            <td class='text-left nowrap color-red'>
                <a data-tips-image="<?php echo htmlentities((isset($vo['logo']) && ($vo['logo'] !== '')?$vo['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>
                <?php if(isset($vo['icon']) && !empty($vo['icon'])): ?><img src="<?php echo htmlentities($vo['icon'],ENT_QUOTES); ?>" width="20px" height="20px" style="background: #0C0C0C;color: #FF5722"><?php endif; ?>&nbsp;&nbsp;<a href="admin#/data/store.goods/index.html?spm=m-84-85-87&title=&cate_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" ><?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:''),ENT_QUOTES); ?></a>
            </td>
            <td class='text-left nowrap'>
            </td>
            <td class='text-center nowrap'>
                <?php if($vo['status'] == 1 and auth("forbid")): ?>
                <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;status#0">正常</a>
                <?php elseif(auth("resume")): ?>
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>;status#1">禁用</a>
                <?php endif; ?>
            </td>
            <td class='text-center nowrap'>
                <?php if($vo['is_hot'] == 1): ?>
                    <a data-title="编辑分类" class="layui-btn layui-btn-sm" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>&is_hot=0'>是</a>
                <?php else: ?>
                    <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-danger" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>&is_hot=1'>否</a>
                <?php endif; ?>
            </td>
            <td class='text-left nowrap'>

                <?php if(auth("edit")): ?>
                <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>'>编 辑</a>
                <?php endif; if(auth("remove")): ?>
                <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>">删 除</a>
                <?php endif; ?>

            </td>
        </tr>
            <?php foreach($vo['child_cate_2'] as $key2=>$vo2): ?>
            <tr>
                <td class='list-table-check-td think-checkbox'>
                    <input class="list-check-box" value='<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>' type='checkbox'>
                </td>
                <td class='list-table-sort-td'>
                    <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vo2['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                </td>
                <td class='text-center nowrap'>
                    <?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>
                </td>
                <td class='text-left nowrap color-green'>
                    <a data-tips-image="<?php echo htmlentities((isset($vo2['logo']) && ($vo2['logo'] !== '')?$vo2['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>
                    &nbsp;&nbsp;&nbsp;&nbsp;<?php if($vo2 === end($vo['child_cate_2'])): ?> ╚ <?php else: ?> ╠ <?php endif; ?> <a href="admin#/data/store.goods/index.html?spm=m-84-85-87&title=&cate_id=<?php echo htmlentities($vo['id'],ENT_QUOTES); ?>" ><?php echo htmlentities((isset($vo2['title']) && ($vo2['title'] !== '')?$vo2['title']:''),ENT_QUOTES); ?></a>
                </td>
                <td class='text-left nowrap'>
                </td>
                <td class='text-center nowrap'>
                    <?php if($vo2['status'] == 1 and auth("forbid")): ?>
                    <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>;status#0">正常</a>
                    <?php elseif(auth("resume")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>;status#1">禁用</a>
                    <?php endif; ?>
                </td>
                <td class='text-center nowrap'>
                    <?php if($vo2['is_hot'] == 1): ?>
                    <a data-title="编辑分类" class="layui-btn layui-btn-sm" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>&is_hot=0'>是</a>
                    <?php else: ?>
                    <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-danger" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>&is_hot=1'>否</a>
                    <?php endif; ?>
                </td>
                <td class='text-left nowrap'>

                    <?php if(auth("edit")): ?>
                    <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>'>编 辑</a>
                    <?php endif; if(auth("remove")): ?>
                    <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vo2['id'],ENT_QUOTES); ?>">删 除</a>
                    <?php endif; ?>

                </td>
            </tr>

                <?php foreach($vo2['child_cate_3'] as $key3=>$vo3): ?>
                <tr>
                    <td class='list-table-check-td think-checkbox'>
                        <input class="list-check-box" value='<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>' type='checkbox'>
                    </td>
                    <td class='list-table-sort-td'>
                        <input data-action-blur="<?php echo request()->url(); ?>" data-value="id#<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>;action#sort;sort#{value}" data-loading="false" value="<?php echo htmlentities($vo3['sort'],ENT_QUOTES); ?>" class="list-sort-input">
                    </td>
                    <td class='text-center nowrap'>
                        <?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>
                    </td>
                    <td class='text-left nowrap'>
                        <a data-tips-image="<?php echo htmlentities((isset($vo3['logo']) && ($vo3['logo'] !== '')?$vo3['logo']:''),ENT_QUOTES); ?>" class="fa fa-image font-s14 margin-right-5"></a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<?php if($vo3 === end($vo2['child_cate_3'])): ?> └ <?php else: ?> ├ <?php endif; ?> <a href="admin#/data/store.goods/index.html?spm=m-84-85-87&title=&cate_id=<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>" ><?php echo htmlentities((isset($vo3['title']) && ($vo3['title'] !== '')?$vo3['title']:''),ENT_QUOTES); ?></a>
                    </td>
                    <td class='text-left nowrap'>
                        <?php echo htmlentities((isset($vo3['goods_count']) && ($vo3['goods_count'] !== '')?$vo3['goods_count']:''),ENT_QUOTES); ?>
                    </td>
                    <td class='text-center nowrap'>
                        <?php if($vo3['status'] == 1 and auth("forbid")): ?>
                        <a class="layui-btn layui-btn-sm" data-action="<?php echo url('forbid'); ?>" data-value="id#<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>;status#0">正常</a>
                        <?php elseif(auth("resume")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="<?php echo url('resume'); ?>" data-value="id#<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>;status#1">禁用</a>
                        <?php endif; ?>
                    </td>
                    <td class='text-center nowrap'>
                        <?php if($vo3['is_hot'] == 1): ?>
                        <a data-title="编辑分类" class="layui-btn layui-btn-sm" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>&is_hot=0'>是</a>
                        <?php else: ?>
                        <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-danger" data-modal='<?php echo url("set_hot"); ?>?id=<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>&is_hot=1'>否</a>
                        <?php endif; ?>
                    </td>
                    <td class='text-left nowrap'>

                        <?php if(auth("edit")): ?>
                        <a data-title="编辑分类" class="layui-btn  layui-btn-sm layui-btn-warm" data-modal='<?php echo url("edit"); ?>?id=<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>'>编 辑</a>
                        <?php endif; if(auth("remove")): ?>
                        <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除数据吗?" data-action="<?php echo url('remove'); ?>" data-value="id#<?php echo htmlentities($vo3['id'],ENT_QUOTES); ?>">删 除</a>
                        <?php endif; ?>

                    </td>
                </tr>
                <?php endforeach; ?>
            <?php endforeach; ?>



        <?php endforeach; ?>
        </tbody>
    </table>
    <?php if(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty())): ?><span class="notdata">没有记录哦</span><?php else: ?><?php echo (isset($pagehtml) && ($pagehtml !== '')?$pagehtml:''); ?><?php endif; ?>
</div>

        </div>
    </div>
    
</div>